[WPF] When Should I Retrieve Values from Textbox?

Posted by they_soft on Stack Overflow See other posts from Stack Overflow or by they_soft
Published on 2010-03-16T21:08:42Z Indexed on 2010/03/16 21:11 UTC
Read the original article Hit count: 96

Filed under:
|

Suppose I have a Window with TextBoxes I want to use the values. Right now I'm thinking of either:

1) Updating each associated value once the cursor is out of focus, and once the user presses Ok I start the program
2) Once the user presses Ok, I retrieve all the values at once then start the program

I'm not sure which one is better though. First alternative seems more modular, but there's more semantic coupling since I each new box is supposed to be updating its respective value.

I realize this isn't all that important, but I'm trying to understand when to centralize and when not to. Other better approachers are appreciated too.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about design-patterns